﻿using B.S.DataBase.MyProject.Domain;
using Microsoft.EntityFrameworkCore;

namespace B.S.DataBase.MyProject.Infrastructure
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class SDbContext : DbContext
    {
        public SDbContext(DbContextOptions options) : base(options)
        {
        }

        /// <summary>
        /// 用户表
        /// </summary>
        public DbSet<User> User { get; set; }
        /// <summary>
        /// 角色表
        /// </summary>
        public DbSet<Role> Role { get; set; }
        /// <summary>
        /// 用户角色表
        /// </summary>
        public DbSet<UserRole> UserRole { get; set; }
        /// <summary>
        /// 菜单表
        /// </summary>
        public DbSet<MenuModel> MenuModels { get; set; }
        /// <summary>
        /// 角色菜单关系表
        /// </summary>
        public DbSet<RoleMenuModel> RoleMenuModel { get; set; }
        /// <summary>
        /// 请假申请表
        /// </summary>
        public DbSet<LeaveModel> LeaveModel { get; set; }
        /// <summary>
        /// 请假申请记录表
        /// </summary>
        public DbSet<LeaveRecordModel> LeaveRecordModel { get; set; }


    }
}


